#pragma once

#include <string>


//任务线程向数据线程传递的数据包
typedef struct DATA_SEND
{
    int sockfd;
    std::string data;

    DATA_SEND(int sockefd_in, std::string data_in)
    {
        sockfd = sockefd_in;
        data = data_in;
    }

    DATA_SEND &operator=(const DATA_SEND &src)
    {
        if(this == &src)
            return *this;

        data = src.data;
        sockfd = src.sockfd;

        return *this;
    }

    DATA_SEND()
    {
        sockfd = 0;
        data = "";
    }

    void Clear()
    {
        sockfd = 0;
        data = "";
    }
}DataSend;